import javax.sound.midi.MidiChannel;
import javax.sound.midi.MidiSystem;
import javax.sound.midi.MidiUnavailableException;
import javax.sound.midi.Synthesizer;


public class Balle {

	private float rayon = Constant.rayonBalle;
	private float x;
	private float y;
	private float vx = 0;
	private float vy = 0;
	
	private int r = 255;
	private int g = 0;
	private int b = 255;
	
	public Balle(float x, float y, float vx, float vy){
		this.x = x;
		this.y = y;
		this.vx = vx;
		this.vy = vy;
	}
	
	public float getRayon() {
		return rayon;
	}
	
	public float getX() {
		return this.x;
	}
	
	public float getY() {
		return this.y;
	}
	
	public float getVx() {
		return this.vx;
	}
	
	public float getVy() {
		return this.vy;
	}
	
	public void setX(float x) {
		this.x = x;
	}
	
	public void setY(float y) {
		this.y = y;
	}
	
	public void setVx(float vx) {
		this.vx = vx;
	}
	
	public void setVy(float vy) {
		this.vy = vy;
	}
	
	public void drawBalle(GraphicsWrapper gw){
		
		//gw.drawClous(this.x, this.y, this.rayon, this.r,this.g,this.b);
		
		gw.setColor(this.r, this.g, this.b);
		gw.drawCenteredCircle(this.x, this.y, this.rayon, true);
	}
	
	public void setColor(int r, int g, int b){
		this.r = r;
		this.g = g;
		this.b = b;
	}
	
}
